//
//  PortHeader.h
//  demo
//
//  Created by 王戈 on 15/6/10.
//  Copyright (c) 2015年 nice. All rights reserved.
//

/**
 *  主路径
 */
#define MAIN_PATH @"http://api.51zjc.com/"
/**
 * 登出
 */
#define LOGOUT_URL MAIN_PATH@"Account/Logout"
/**
 *  注册
 */
#define REGISTER_URL MAIN_PATH@"Account/Register"
/**
 *  设置密码
 */
#define SET_PASSWORD_URL MAIN_PATH@"Account/SetPassword"

#define GET_USERINFO MAIN_PATH@"Account/UserInfo"

#define GET_HOMEINFO MAIN_PATH@"Home/Advertisement"

#define POST_TAILINFO MAIN_PATH@"TailGoods/List"

#define POST_JOBINFO MAIN_PATH@"Recruitment/List"

#define POST_MARKETINFO MAIN_PATH@"Market/List"

#define POST_SHOPINFO MAIN_PATH@"Rent/List"

#define POST_TAILDETAIL MAIN_PATH@"TailGoods/Detail"

/**
 *  城市ID
 */
#define GET_CURRENTCITYID MAIN_PATH@"Area/GetCityId"

/**
 *  获取验证码
 */
#define GetVerifyCode_URL MAIN_PATH@"Account/GetVerifyCode"

/**
 *  获取重置验证码
 */
#define GetResetVerifyCode_URL(phonenum) [NSString stringWithFormat:@"%@Account/GetResetPWDVerifyCode?cellphone=%@",MAIN_PATH,(phonenum)]

/**
 *  获取地域信息
 */
#define GetAllCityWithPid(pid) [NSString stringWithFormat:@"%@Area/GetAllCity?pid=%@",MAIN_PATH,(pid)]
/**
 *  获取分类列表
 */
#define CategoryList MAIN_PATH@"Category/List"
/**
 *  根据分类获取公司列表
 */
#define CategoryGetAllCompanyWithID(id) [NSString stringWithFormat:@"%@Category/GetAllCompany?categoryId=%@",MAIN_PATH,(id)]
/**
 *  添加收藏
 */
#define FavouritesAdd MAIN_PATH@"Favourites/Favourites"
/**
 *   收藏列表
 */
#define FavouritesList(pn) [NSString stringWithFormat:@"%@Favourites/List?pn=%@",MAIN_PATH,(pn)]
/**
 *  查看某玩意儿是否被收藏
 */
#define CheckIsFavourites MAIN_PATH@"Favourites/CheckIsFavourites"
/**
 *  退出登录
 */
#define Logout MAIN_PATH@"Account/Logout"
/**
 *  更换密码
 */
#define ChangePassword MAIN_PATH@"Account/ChangePassword"
/**
 *  获取所有信息列表
 */
#define GetMessageList(pn) [NSString stringWithFormat:@"%@Account/GetMessageList?pn=%@",MAIN_PATH,(pn)]
/**
 *  编辑客户资料
 */
#define UserInfoEdit MAIN_PATH@"Account/UserInfoEdit"

#pragma mark - 尾货相关
/**
 *  添加尾货
 */
#define TailGoodsAdd MAIN_PATH@"TailGoods/Add"
/**
 *  修改尾货
 */
#define TailGoodsEdit MAIN_PATH@"TailGoods/Edit"
/**
 *  尾货置顶
 */
#define TailGoodsTop(ID) [NSString stringWithFormat:@"%@TailGoods/Top/%@",MAIN_PATH,(ID)]
/**
 *  删除尾货信息
 */
#define TailGoodsDelete(ID) [NSString stringWithFormat:@"%@TailGoods/Delete/%@",MAIN_PATH,(ID)]

#pragma mark - 招聘相关
/**
 *  添加招聘信息
 */
#define RecruitmentAdd MAIN_PATH@"Recruitment/Add"
/**
 *  修改招聘信息
 */
#define RecruitmentEdit MAIN_PATH@"Recruitment/Edit"
/**
 *  删除招聘信息
 */
#define RecruitmentDelete(ID) [NSString stringWithFormat:@"%@Recruitment/Delete/%@",MAIN_PATH,(ID)]
/**
 *  招聘信息置顶
 */
#define RecruitmentTop(ID) [NSString stringWithFormat:@"%@Recruitment/Top/%@",MAIN_PATH,(ID)]

#pragma mark 商铺相关
/**
 *  获取商铺信息
 */
#define RentListWithPN(pn) [NSString stringWithFormat:@"%@Rent/List?pn=%@",MAIN_PATH,(pn)]
/**
 *  获取商铺详情
 */
#define RentDetailWithID(id) [NSString stringWithFormat:@"%@Rent/Detail/%@",MAIN_PATH,(id)]
/**
 *  增加商铺信息
 */
#define RentAdd MAIN_PATH@"Rent/Add"
/**
 *  修改商铺信息
 */
#define RentEdit MAIN_PATH@"Rent/Edit"
/**
 *  删除商铺信息
 */
#define RentDelete(ID) [NSString stringWithFormat:@"%@Rent/Delete/%@",MAIN_PATH,(ID)]
/**
 *  商铺信息置顶
 */
#define RentTop(ID) [NSString stringWithFormat:@"%@Rent/Top/%@",MAIN_PATH,(ID)]
/**
 *  市场详情
 */
#define MarketDetail(ID) [NSString stringWithFormat:@"%@Market/Detail/%@",MAIN_PATH,(ID)]
/**
 *  获取公司
 */
#define GetCompany(ID) [NSString stringWithFormat:@"%@Company/GetCompany/%@",MAIN_PATH,(ID)]
/**
 *  根据品牌获取公司信息
 */
#define CompanyListWithPNandBrand(pn,brand) [NSString stringWithFormat:@"%@Company/List?pn=%@&brand=%@",MAIN_PATH,(pn),(brand)]
/**
 *  获取推荐公司信息
 */
#define PushCompanyList MAIN_PATH@"PushCompany/List"
/**
 *  获取招聘信息详情
 */
#define RecruitmentDetail(ID) [NSString stringWithFormat:@"%@Recruitment/Detail/%@",MAIN_PATH,(ID)]

/**
 *  上传图片接口
 *
 */
#define POST_UPLOADIMAGE @"http://gl.51zjc.com:81/fileupload/apiuploadimage"

#define GET_SHARECONTENT MAIN_PATH@"Home/GetShareContent"
